package cn.edu.cug.cs.gtl.renders.openinventor.nodes;

import cn.edu.cug.cs.gtl.apis.render.nodes.GradientBackground;
import com.openinventor.inventor.nodes.SoGradientBackground;

public class GradientBackgroundImpl extends NodeImpl implements GradientBackground {
    public GradientBackgroundImpl() {
        super();
        this.nativeObject = new SoGradientBackground();
    }
    public GradientBackgroundImpl(SoGradientBackground background) {
        super();
        this.nativeObject = background;
    }
    @Override
    public boolean attach(Object nativeObject) {
        if(nativeObject instanceof SoGradientBackground)
            this.nativeObject = (SoGradientBackground)nativeObject;
        else
            return false;

        return true;
    }
}
